package com.impak.infoot.transport.impl

import com.impak.infoot.transport.IPlayerService
import com.impak.infoot.domain.foot.Player
import com.impak.infoot.domain.foot.Team
import com.impak.infoot.domain.foot.PlayerTeam
import com.impak.infoot.domain.foot.Match

import java.util.Calendar
import java.util.List

/**
 * Implementation of the interface IPlayerService transport layer
 *
 */
class PlayerTService implements IPlayerService {
	
	/**
	* Expose as Web service
	*/
   static expose=['cxf']
	
	/**
	 *	Reference on PlayerService 
	 */
 	def playerService
	
	Player getPlayer(Long playerId) {
		playerService.getPlayer playerId
	}
 	
	List<Player> getTeamPlayers(Long teamId, Calendar date) {
		playerService.getTeamPlayers teamId, date
	}
	
	List<Player> getPlayersOfTeamInMatch(Long teamId, Long matchId) {
		playerService.getPlayersOfTeamInMatch teamId, matchId
	}

}
